From: Thomas Gleixner Date: Sun, 23 Mar 2014 15:09:31 +0000 (+0000) Subject: Bluetooth: bluecard: Use del_timer_sync() in teardown path X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~6243^2~11^2~7^2~45^2~56 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d8ff9cdf68fd119d491f3de90e1a612afc2f3b2b;p=linux-4.9.git Bluetooth: bluecard: Use del_timer_sync() in teardown path Make sure no timer callback is running before releasing the datastructure which contains it. Signed-off-by: Thomas Gleixner Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index a9a989e5ee88..dfa5043e68ba 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c @@ -901,7 +901,7 @@ static void bluecard_release(struct pcmcia_device *link) bluecard_close(info); - del_timer(&(info->timer)); + del_timer_sync(&(info->timer)); pcmcia_disable_device(link); }